﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.WWW.Teach.Search2" %>
<script>
var SortBy="<%=SortBy %>";
</script>
<asp:Literal ID="litCount" Text="15" runat="server" Visible="false"/>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenu3"></div>
				<div id="Title">
					<div class="h1">Find a Language Teacher</div>
				</div>
				<div class="Center9001">
				<div class="center9001content">
					<div class="content828" id="Content828ID">						
						<div id="Filter" class="contacts_sortarea">
							<div>							    
								I’m looking for a: <strong><input id="chbTeach" type="checkbox" /><label for="chbTeach"> Professional Teacher</label><input id="chbTutor" type="checkbox" /><label for="chbTutor"> Language Tutor</label></strong>
								<div id="tableA">
									<table border="0" cellspacing="0" cellpadding="3">
										<tr>
											<td>Teaches:<br /><select id="selTeachL" class="common180"> <option value="">Any languages</option> <%=GetLanguageSelect("")%> </select></td>
											<td>Speaks:<br /><select id="selSpeakL" class="common180"> <option value="">Any languages</option> <%=GetLanguageSelect("")%> </select></td>
											<td>From:<br /><select id="selCountry" class="common130"> <option value="">Anywhere</option>  <%=GetCountrySelect("")%> </select></td>
											<td>Hourly Rate (€ per hour):<br />from<input id="MinPrice" type="text" /> to <input id="MaxPrice" type="text" /></td>
										</tr>
									</table>
								</div>								
								<div>
									<input id="bttSear" name="bttSear_name" type="button" value="browse" class="button" onclick="SearBrowseDocs()" />
									<input id="IsNativeBLID" type="checkbox" /><label for="IsNativeBLID">Native speaker</label>
									<input id="IsFreeID" type="checkbox" /> <label for="IsFreeID">free trial</label>
								</div>
							</div>
						</div>							
					</div>					
					<div class="center9001right">
						<div class="Center9001Content">
						    <div class="content628 margin20" style="padding-bottom:5px;border-bottom:1px #e1e1e1 solid;">
					            <div style="width:540px; float:left"><div id="SearCount"><%=(RecordCount == 0 ? "Found no results for your search." : (RecordCount > 499 ? "First 500 language teachers" : string.Format("{0} language teachers", RecordCount)))%></div></div>
						        <div style="width:300px; float:right; text-align:right">
						            <div class="floatr">
						            Sort by:
						            <%if (Country!="") {%>
					                    <%if(SortBy=="1") {%>
					                        <strong>Login time</strong>
					                        | <a href="<%=WWWHost %>/teacher/in-<%=Country %>.htm?sort=2">Ratings</a> 
					                        | <a href="<%=WWWHost %>/teacher/in-<%=Country %>.htm?sort=3">Sessions</a>
					                        | <a href="<%=WWWHost %>/teacher/in-<%=Country %>.htm?sort=4">Price</a>
					                    <%} else if(SortBy=="2") {%>
					                        <a href="<%=WWWHost %>/teacher/in-<%=Country %>.htm?sort=1">Login time</a> 
					                        | <strong>Ratings</strong> 
					                        | <a href="<%=WWWHost %>/teacher/in-<%=Country %>.htm?sort=3">Sessions</a>
					                        | <a href="<%=WWWHost %>/teacher/in-<%=Country %>.htm?sort=4">Price</a>					                    
					                    <%} else if(SortBy=="3"){%>
					                        <a href="<%=WWWHost %>/teacher/in-<%=Country %>.htm?sort=1">Login time</a> 
					                        | <a href="<%=WWWHost %>/teacher/in-<%=Country %>.htm?sort=2">Ratings</a> 
					                        | <strong>Sessions</strong>
					                        | <a href="<%=WWWHost %>/teacher/in-<%=Country %>.htm?sort=4">Price</a>
					                    <%} else{%>
					                        <a href="<%=WWWHost %>/teacher/in-<%=Country %>.htm?sort=1">Login time</a> 
					                        | <a href="<%=WWWHost %>/teacher/in-<%=Country %>.htm?sort=2">Ratings</a> 
					                        | <a href="<%=WWWHost %>/teacher/in-<%=Country %>.htm?sort=3">Sessions</a>
					                        | <strong>Price</strong>
					                    <%} %>
					                <%} else{%>
					                    <%if(SortBy=="1") {%>
					                        <strong>Login time</strong>
					                        | <a href="<%=WWWHost %>/teacher/love-<%=Favorite %>.htm?sort=2">Ratings</a> 
					                        | <a href="<%=WWWHost %>/teacher/love-<%=Favorite %>.htm?sort=3">Sessions</a>
					                        | <a href="<%=WWWHost %>/teacher/love-<%=Favorite %>.htm?sort=4">Price</a>
					                    <%} else if(SortBy=="2") {%>
					                        <a href="<%=WWWHost %>/teacher/love-<%=Favorite %>.htm?sort=1">Login time</a> 
					                        | <strong>Ratings</strong> 
					                        | <a href="<%=WWWHost %>/teacher/love-<%=Favorite %>.htm?sort=3">Sessions</a>
					                        | <a href="<%=WWWHost %>/teacher/love-<%=Favorite %>.htm?sort=4">Price</a>					                    
					                    <%} else if(SortBy=="3"){%>
					                        <a href="<%=WWWHost %>/teacher/love-<%=Favorite %>.htm?sort=1">Login time</a> 
					                        | <a href="<%=WWWHost %>/teacher/love-<%=Favorite %>.htm?sort=2">Ratings</a> 
					                        | <strong>Sessions</strong>
					                        | <a href="<%=WWWHost %>/teacher/love-<%=Favorite %>.htm?sort=4">Price</a>
					                    <%} else{%>
					                        <a href="<%=WWWHost %>/teacher/love-<%=Favorite %>.htm?sort=1">Login time</a> 
					                        | <a href="<%=WWWHost %>/teacher/love-<%=Favorite %>.htm?sort=2">Ratings</a> 
					                        | <a href="<%=WWWHost %>/teacher/love-<%=Favorite %>.htm?sort=3">Sessions</a>
					                        | <strong>Price</strong>
					                    <%} %>
					                <%} %>
						            </div>
									<div class="clear"></div>						            
						        </div>
						        <div class="Clear"></div>
					        </div>
							<!--Search result-->
							<div>Teachers  Languages  Tutoring</div>
							<div id="memberList" class="content628 ">							    
							    <asp:Repeater ID="rptUserList" runat="server">
                                    <ItemTemplate>                                    
										<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:10px;padding-bottom:10px;border-bottom:1px #e1e1e1 solid;overflow:hidden">
										  <tr>
											<td valign="top">
											    <div class="Pic90">
											        <a class="Photo_90" href="/<%#Eval("MemberNo") %>T.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt='' />" : Eval("Avatar", "<img src=\"{0}\" />").ToString()%></a>
											        <br /><%#Eval("TeacherType").ToString()=="1"?"Teacher":"Tutor"%>
											    </div>
											</td>
											<td valign="top"><div class="Blue14BU"><img src='<%#(bool)Eval("Online") == true?"/Images/Online.gif":"/Images/Offline.gif" %>' /> <a href="/<%#Eval("MemberNo") %>T.htm"><%#Eval("NickName") %></a></div>
											<div> from <%#GetCountryText(Eval("Nationality").ToString())%></div>
											</td>
											<td>
											    Teaches:<strong>
											        <%#Eval("TLang1").ToString()==""?"":BLF.StaticData.GetLanguageText(Eval("TLang1").ToString())%>
											        <%#Eval("TLang2").ToString()==""?"":BLF.StaticData.GetLanguageText(Eval("TLang2").ToString())%>
											        <%#Eval("TLang3").ToString() == "" ? "" : BLF.StaticData.GetLanguageText(Eval("TLang3").ToString())%>
											        <%#Eval("TLang4").ToString() == "" ? "" : BLF.StaticData.GetLanguageText(Eval("TLang4").ToString())%>
											    </strong>											
											    <br />Speaks:<strong><%#BLF.StaticData.GetLanguageText(Eval("MotherTongue").ToString())%><img src="/Images/Level5.gif" />
											    <%#(Eval("MotherTongue2").ToString().Trim()=="")?"":(BLF.StaticData.GetLanguageText(Eval("MotherTongue2").ToString())+Eval("motherTongue2Level","<img src=\"/Images/Level{0}.gif\" />"))%>
											    <%#(Eval("MotherTongue3").ToString().Trim() == "") ? "" : (BLF.StaticData.GetLanguageText(Eval("MotherTongue3").ToString()) + Eval("motherTongue3Level", "<img src=\"/Images/Level{0}.gif\" />"))%>
											    <%#(Eval("MotherTongue4").ToString().Trim() == "") ? "" : (BLF.StaticData.GetLanguageText(Eval("MotherTongue4").ToString()) + Eval("motherTongue4Level", "<img src=\"/Images/Level{0}.gif\" />"))%>
											    </strong>
											</td>
											<td>
											    <strong>€<%#Eval("Price").ToString() %> / hour</strong>
											    <br /><%#(int)Eval("Sessions") > 0 ? "<br /><img src='/images/fbapp_level_" + ((decimal)Eval("StarRate")).ToString("N0") + ".gif' align='absmiddle'  title='" + ((decimal)Eval("StarRate")).ToString("N1") + "'/><br />" + GetText("Sessions:") + Eval("Sessions") : ""%>											    
											</td>											
										</tr>
										</table>
							        </ItemTemplate>
                                </asp:Repeater>   
                                <%if (rptUserList.Items.Count == 0){ %>没有找到你要的数据<%} %>                              
							</div>
							<div class="clear"></div>
							<div id="divPage" class="margin20T">							
								<%=!string.IsNullOrEmpty(Country) ? CreatePageNav(RecordCount, psize, PageIndex, "",
									string.Format("<span class='page_none grey10'><a href='{0}/teacher/in-{1}.htm?p=$I$&sort={2}'>{3}</a></span>&nbsp;", WWWHost,Country,SortBy,HttpUtility.UrlEncode(GetText("Prev"))),
									"",
									string.Format("<span class='page_none grey10'><a href='{0}/teacher/in-{1}.htm?p=$I$&sort={2}'>{3}</a></span>&nbsp;", WWWHost,Country,SortBy,HttpUtility.UrlEncode(GetText("Next"))),
									string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
									string.Format("<span class='page_none grey10'><a href='{0}/teacher/in-{1}.htm?p=$I$&sort={2}'>$I$</a></span>&nbsp;",WWWHost,Country,SortBy)
                                    ):
                                    CreatePageNav(RecordCount, psize, PageIndex, "",
									string.Format("<span class='page_none grey10'><a href='{0}/teacher/love-{1}.htm?p=$I$&sort={2}'>{3}</a></span>&nbsp;", WWWHost,Favorite,SortBy,HttpUtility.UrlEncode(GetText("Prev"))),
									"",
									string.Format("<span class='page_none grey10'><a href='{0}/teacher/love-{1}.htm?p=$I$&sort={2}'>{3}</a></span>&nbsp;", WWWHost,Favorite,SortBy,HttpUtility.UrlEncode(GetText("Next"))),
									string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
									string.Format("<span class='page_none grey10'><a href='{0}/teacher/love-{1}.htm?p=$I$&sort={2}'>$I$</a></span>&nbsp;",WWWHost,Favorite,SortBy)
                                    )
								%>
							</div>
							<div>
							    <h3><%=GetText("C2014")%></h3>
						        <div class="margin5">
				                    <asp:Repeater ID="rptPopular" runat="server">
						                <ItemTemplate>										
							                <a href='<%=WWWHost %>/teacher/teach-<%#Eval("LanguageValue")%>.htm'><%#string.Format("{0} teachers",Eval("LanguageText").ToString())%></a>
						                </ItemTemplate>
					                </asp:Repeater>
						        </div>
						        <div><a href="/teacher/languages.htm">All languages for language teachers</a></div>
						    </div>
						</div>
					</div>					
					<div class="center9001left">
					    <div >
					        <input id="textSear2" type="text" class="common300" />
							<input id="bttSear2" type="button" value="search" class="button" onclick="SearchDocs()" />						    
					    </div>						
					</div>
					<div class="clear"></div>					
				</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
